package com.workflow.user.dto;

/**
 * Data Transfer Object pattern for user account data.
 * @author Tony
 */
public class UserAccountDTO {

    private String username;
    private String password;

    public UserAccountDTO(String username, String password) {
        this.username = username;
        this.password = password;
    }

    //<editor-fold defaultstate="collapsed" desc="Getters">
    public String getPassword() {
        return password;
    }

    public String getUsername() {
        return username;
    }

    //</editor-fold>
    //<editor-fold defaultstate="collapsed" desc="Hashcode/equals">
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UserAccountDTO other = (UserAccountDTO) obj;
        if ((this.username == null) ? (other.username != null) : !this.username.equals(other.username)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 23 * hash + (this.username != null ? this.username.hashCode() : 0);
        return hash;
    }
    //</editor-fold>
}
